package com.vegetable.modules.entity.baseData;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 客商-费用明细表
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="StallsClauses对象", description="客商-费用明细表")
public class StallsClauses extends BaseEntity {

    @ApiModelProperty(value = "客商id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long stallsId;

    @ApiModelProperty(value = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long producerId;

    @ApiModelProperty(value = "数据字典id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long clauseId;

    @ApiModelProperty(value = "费用名称")
    private String clauseName;

    @ApiModelProperty(value = "标签：0按重，1按件，2固定")
    private Integer calMode;

    @ApiModelProperty(value = "费用")
    private BigDecimal calPrice;


}
